/*
 * Created by 18012 on 2018/4/14.
 * desc: 响应状态标记
 */
package com.example.springboot.restapi.base;

/**
 *
 ************************************************************
 * @Description:前后端分离的响应状态标记
 * ==========================================================
 * @author wenyi  2018/1/17 21:46
 * @see
 * @since JDK1.8
 ************************************************************
 */
public class Mate {

    /**
     * 响应的状态码，1代表成功
     */
    private Integer code;

    /**
     * 响应的提示
     */
    private String msg;

    public Mate() {
    }

    public Mate(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Mate{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                '}';
    }
}
